
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>消息驱动-Stream · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-sidebar-style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="16.链路监控-Sleuth.html" />
    
    
    <link rel="prev" href="14.消息总线-bus.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">基础篇</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../java基础/IO流基础.html">
            
                <a href="../java基础/IO流基础.html">
            
                    
                    IO流基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../java基础/集合.html">
            
                <a href="../java基础/集合.html">
            
                    
                    集合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../java基础/异常处理.html">
            
                <a href="../java基础/异常处理.html">
            
                    
                    异常处理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../java基础/线程.html">
            
                <a href="../java基础/线程.html">
            
                    
                    线程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../java基础/网络编程.html">
            
                <a href="../java基础/网络编程.html">
            
                    
                    网络编程
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">进阶篇</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../java进阶/MySQL.html">
            
                <a href="../java进阶/MySQL.html">
            
                    
                    MySQL
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../java进阶/Oracle.html">
            
                <a href="../java进阶/Oracle.html">
            
                    
                    Oracle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../java进阶/Redis.html">
            
                <a href="../java进阶/Redis.html">
            
                    
                    Redis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../java进阶/Netty.html">
            
                <a href="../java进阶/Netty.html">
            
                    
                    Netty
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../java进阶/Spring.html">
            
                <a href="../java进阶/Spring.html">
            
                    
                    Spring
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../java进阶/SpringMVC.html">
            
                <a href="../java进阶/SpringMVC.html">
            
                    
                    SpringMVC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="../java进阶/单元测试.html">
            
                <a href="../java进阶/单元测试.html">
            
                    
                    SpringBoot单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="../java进阶/设计模式.html">
            
                <a href="../java进阶/设计模式.html">
            
                    
                    二十三个设计模式
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.8.1" data-path="../java进阶/工厂模式.html">
            
                <a href="../java进阶/工厂模式.html">
            
                    
                    工厂模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.2" data-path="../java进阶/单例模式.html">
            
                <a href="../java进阶/单例模式.html">
            
                    
                    单例模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.3" data-path="../java进阶/建造者模式.html">
            
                <a href="../java进阶/建造者模式.html">
            
                    
                    建造者模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.4" data-path="../java进阶/原型模式.html">
            
                <a href="../java进阶/原型模式.html">
            
                    
                    原型模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.5" data-path="../java进阶/适配器模式.html">
            
                <a href="../java进阶/适配器模式.html">
            
                    
                    适配器模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.6" data-path="../java进阶/责任链模式.html">
            
                <a href="../java进阶/责任链模式.html">
            
                    
                    责任链模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8.7" data-path="../java进阶/桥接模式.html">
            
                <a href="../java进阶/桥接模式.html">
            
                    
                    桥接模式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">高级篇</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="1.cloud架构选型.html">
            
                <a href="1.cloud架构选型.html">
            
                    
                    Spring Cloud
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1.1" data-path="2.Provider-支付模块.html">
            
                <a href="2.Provider-支付模块.html">
            
                    
                    Provider-支付模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.2" data-path="3.Consumer-订单模块.html">
            
                <a href="3.Consumer-订单模块.html">
            
                    
                    Consumer-订单模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.3" data-path="4.重构-Common模块.html">
            
                <a href="4.重构-Common模块.html">
            
                    
                    重构-Common模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.4" data-path="5.注册中心-Enreka.html">
            
                <a href="5.注册中心-Enreka.html">
            
                    
                    注册中心-Enreka
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.5" data-path="6.负载均衡-@LoadBalance.html">
            
                <a href="6.负载均衡-@LoadBalance.html">
            
                    
                    负载均衡-@LoadBalance
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.6" data-path="7.更换注册中心-Zookeeper.html">
            
                <a href="7.更换注册中心-Zookeeper.html">
            
                    
                    更换注册中心-Zookeeper
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.7" data-path="8.更换注册中心-Consul.html">
            
                <a href="8.更换注册中心-Consul.html">
            
                    
                    更换注册中心-Consul
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.8" data-path="9.负载均衡-Ribbon.html">
            
                <a href="9.负载均衡-Ribbon.html">
            
                    
                    负载均衡-Ribbon
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.9" data-path="10.服务调用-OpenFeign.html">
            
                <a href="10.服务调用-OpenFeign.html">
            
                    
                    服务调用-OpenFeign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.10" data-path="11.熔断器-Hystrix.html">
            
                <a href="11.熔断器-Hystrix.html">
            
                    
                    熔断器-Hystrix
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.11" data-path="12.网关-Gateway.html">
            
                <a href="12.网关-Gateway.html">
            
                    
                    网关-Gateway
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.12" data-path="13.配置中心-Config.html">
            
                <a href="13.配置中心-Config.html">
            
                    
                    配置中心-Config
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.13" data-path="14.消息总线-bus.html">
            
                <a href="14.消息总线-bus.html">
            
                    
                    消息总线-Bus
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="4.1.14" data-path="15.消息驱动-stream.html">
            
                <a href="15.消息驱动-stream.html">
            
                    
                    消息驱动-Stream
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.15" data-path="16.链路监控-Sleuth.html">
            
                <a href="16.链路监控-Sleuth.html">
            
                    
                    链路监控-Sleuth
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.16" data-path="17.注册中心&配置中心-nacos.html">
            
                <a href="17.注册中心&配置中心-nacos.html">
            
                    
                    注册中心&配置中心-nacos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.1.17" data-path="18.限流-sentinel.html">
            
                <a href="18.限流-sentinel.html">
            
                    
                    限流-sentinel
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="../java高级/JUC.html">
            
                <a href="../java高级/JUC.html">
            
                    
                    神秘的JUC包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.3" data-path="../java高级/Docker.html">
            
                <a href="../java高级/Docker.html">
            
                    
                    Docker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="../java高级/布隆过滤器.html">
            
                <a href="../java高级/布隆过滤器.html">
            
                    
                    布隆过滤器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="../java高级/Redission.html">
            
                <a href="../java高级/Redission.html">
            
                    
                    Redission
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="../java高级/MQ.html">
            
                <a href="../java高级/MQ.html">
            
                    
                    消息队列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="../java高级/JVM.html">
            
                <a href="../java高级/JVM.html">
            
                    
                    JVM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="../java书籍/《Effective Java》读书笔记.html">
            
                <a href="../java书籍/《Effective Java》读书笔记.html">
            
                    
                    《Effective Java》读书笔记 
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.8.1" data-path="../java书籍/创建和销毁对象.html">
            
                <a href="../java书籍/创建和销毁对象.html">
            
                    
                    创建和销毁对象
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    
        
        <li class="header">番外篇</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../java面试/面试题.html">
            
                <a href="../java面试/面试题.html">
            
                    
                    面试题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../番外篇/小程序.html">
            
                <a href="../番外篇/小程序.html">
            
                    
                    微信小程序
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >消息驱动-Stream</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="1-&#x6982;&#x8FF0;"><a name="1-&#x6982;&#x8FF0;" class="plugin-anchor" href="#1-&#x6982;&#x8FF0;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x6982;&#x8FF0;</h2>
<p><strong>&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x5F15;&#x5165;Spring Cloud Stream</strong></p>
<p>&#x5E38;&#x89C1;&#x7684;MQ(&#x6D88;&#x606F;&#x4E2D;&#x95F4;&#x4EF6;)&#x6709;&#xFF1A;ActiveMQ&#x3001;RabbitMQ&#x3001;RocketMQ&#x3001;Kafka&#x3002;&#x8BE5;&#x6846;&#x67B6;&#x53EF;&#x4EE5;&#x8BA9;&#x6211;&#x4EEC;&#x4E0D;&#x518D;&#x5173;&#x6CE8;&#x5177;&#x4F53;MQ&#x7684;&#x7EC6;&#x8282;&#xFF0C;&#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x4E00;&#x79CD;&#x9002;&#x914D;&#x65B9;&#x5F0F;&#xFF0C;&#x81EA;&#x52A8;&#x5728;&#x5404;&#x4E2A;MQ&#x4E2D;&#x5207;&#x6362;&#xFF0C;&#x7EDF;&#x4E00;&#x6D88;&#x606F;&#x7F16;&#x7A0B;&#x6A21;&#x578B;&#x3002;</p>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h42v3un4r9j20kk0gcmxr.jpg" alt="&#x67B6;&#x6784;&#x56FE;"></p>
<p>Middleware&#xFF1A;&#x6D88;&#x606F;&#x4E2D;&#x95F4;&#x4EF6;</p>
<p>Binder&#xFF1A;&#x9002;&#x914D;&#x5668;&#xFF0C;&#x7528;&#x6765;&#x5C06;Stream&#x548C;&#x4E2D;&#x95F4;&#x4EF6;&#x5173;&#x8054;&#xFF0C;&#x4E0D;&#x540C;&#x7684;Binder&#x5BF9;&#x5E94;&#x4E0D;&#x540C;&#x7684;&#x4E2D;&#x95F4;&#x4EF6;&#x9700;&#x8981;&#x914D;&#x7F6E;</p>
<p>ApplicationCore&#xFF1A;&#x7531;Stream&#x5C01;&#x88C5;&#x7684;&#x6D88;&#x606F;&#x673A;&#x5236;</p>
<p>Inputs&#xFF1A;&#x8F93;&#x5165;&#xFF0C;&#x6216;&#x8005;&#x53EB;&#x751F;&#x4EA7;&#x8005;</p>
<p>Outputs&#xFF1A;&#x8F93;&#x51FA;&#xFF0C;&#x6216;&#x8005;&#x53EB;&#x6D88;&#x8D39;&#x8005;</p>
<table>
<thead>
<tr>
<th>&#x6CE8;&#x89E3;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>@Input</td>
<td>&#x8BE5;&#x6CE8;&#x89E3;&#x6807;&#x8BC6;&#x8F93;&#x5165;&#x901A;&#x9053;&#xFF0C;&#x901A;&#x8FC7;&#x8BE5;&#x8F93;&#x5165;&#x901A;&#x9053;&#x63A5;&#x6536;&#x6D88;&#x606F;&#x8FDB;&#x5165;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;</td>
</tr>
<tr>
<td>@Output</td>
<td>&#x8BE5;&#x6CE8;&#x89E3;&#x6807;&#x8BC6;&#x8F93;&#x51FA;&#x901A;&#x9053;&#xFF0C;&#x53D1;&#x5E03;&#x7684;&#x6D88;&#x606F;&#x5C06;&#x901A;&#x8FC7;&#x8BE5;&#x901A;&#x9053;&#x79BB;&#x5F00;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;</td>
</tr>
<tr>
<td>@StreamListener</td>
<td>&#x76D1;&#x542C;&#x961F;&#x5217;&#xFF0C;&#x7528;&#x4E8E;&#x6D88;&#x8D39;&#x8005;&#x7684;&#x961F;&#x5217;&#x7684;&#x6D88;&#x606F;&#x63A5;&#x6536;</td>
</tr>
<tr>
<td>@EnableBinding</td>
<td>&#x5C06;&#x4FE1;&#x9053;channel&#x548C;exchange&#x7ED1;&#x5B9A;&#x4E00;&#x8D77;</td>
</tr>
</tbody>
</table>
<p><img src="https://tva1.sinaimg.cn/large/e6c9d24ely1h43ygdiwcbj20u80f8gms.jpg" alt=""></p>
<h2 id="2&#x63A5;&#x5165;"><a name="2&#x63A5;&#x5165;" class="plugin-anchor" href="#2&#x63A5;&#x5165;"><i class="fa fa-link" aria-hidden="true"></i></a>2.&#x63A5;&#x5165;</h2>
<p>&#x8FD9;&#x91CC;&#x6211;&#x76F4;&#x63A5;&#x4FEE;&#x6539;order&#x9879;&#x76EE;&#x6D88;&#x8D39;payment&#x9879;&#x76EE;&#x751F;&#x4EA7;&#x7684;&#x6D88;&#x606F;&#x3002;</p>
<p><strong>&#x4FEE;&#x6539;payment&#x6A21;&#x5757;&#x751F;&#x4EA7;&#x6D88;&#x606F;</strong></p>
<hr>
<p>pom.xml&#x589E;&#x52A0;stream&#x7684;&#x4F9D;&#x8D56;</p>
<pre><code class="lang-xml"><span class="hljs-comment">&lt;!--&#x589E;&#x52A0;&#x540E;&#x7684;&#x6574;&#x4F53;pom--&gt;</span>
<span class="php"><span class="hljs-meta">&lt;?</span>xml version=<span class="hljs-string">&quot;1.0&quot;</span> encoding=<span class="hljs-string">&quot;UTF-8&quot;</span><span class="hljs-meta">?&gt;</span></span>
<span class="hljs-tag">&lt;<span class="hljs-name">project</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0&quot;</span>
         <span class="hljs-attr">xmlns:xsi</span>=<span class="hljs-string">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
         <span class="hljs-attr">xsi:schemaLocation</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">parent</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>bigdata<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.springcloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>1.0-SNAPSHOT<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">parent</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">modelVersion</span>&gt;</span>4.0.0<span class="hljs-tag">&lt;/<span class="hljs-name">modelVersion</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>eureka-provider-payment<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">dependencies</span>&gt;</span>
        <span class="hljs-comment">&lt;!--spring cloud stream &#x4F9D;&#x8D56;(rabbit)--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-stream-rabbit<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--hystrix--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-netflix-hystrix<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--eureka--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-netflix-eureka-client<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--web--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-web<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-actuator<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--mybatis--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.mybatis.spring.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>mybatis-spring-boot-starter<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.alibaba<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>druid-spring-boot-starter<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>mysql<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>mysql-connector-java<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-jdbc<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--&#x70ED;&#x90E8;&#x7F72;--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-devtools<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>runtime<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">optional</span>&gt;</span>true<span class="hljs-tag">&lt;/<span class="hljs-name">optional</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-comment">&lt;!--lombok--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.projectlombok<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>lombok<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">optional</span>&gt;</span>true<span class="hljs-tag">&lt;/<span class="hljs-name">optional</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-comment">&lt;!--test--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-test<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>test<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.springcloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>api-common<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>${project.version}<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

    <span class="hljs-tag">&lt;/<span class="hljs-name">dependencies</span>&gt;</span>

<span class="hljs-tag">&lt;/<span class="hljs-name">project</span>&gt;</span>
</code></pre>
<p>application.yml</p>
<pre><code class="lang-yml"><span class="hljs-attr">server:</span>
<span class="hljs-attr">  port:</span> <span class="hljs-number">8001</span>

<span class="hljs-attr">spring:</span>
<span class="hljs-attr">  application:</span>
<span class="hljs-attr">    name:</span> eureka-provider-payment
<span class="hljs-attr">  cloud:</span>
<span class="hljs-attr">    stream:</span>
<span class="hljs-attr">      binders:</span>                                                  <span class="hljs-comment"># &#x6B64;&#x5904;&#x914D;&#x7F6E;&#x8981;&#x7ED1;&#x5B9A;&#x7684;rabbitmq&#x7684;&#x670D;&#x52A1;&#x4FE1;&#x606F;</span>
<span class="hljs-attr">        defaultRabbit:</span>                                          <span class="hljs-comment"># &#x8868;&#x793A;&#x5B9A;&#x4E49;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x7528;&#x4E8E;&#x4E0E;binding&#x6574;&#x5408;</span>
<span class="hljs-attr">          type:</span> rabbit                                          <span class="hljs-comment"># &#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x5982;&#x679C;&#x662F;kafka&#x5C31;&#x5199;kafka</span>

<span class="hljs-comment">#           environment:                                        # &#x8BBE;&#x7F6E;rabbitMQ&#x76F8;&#x5173;&#x73AF;&#x5883;&#x914D;&#x7F6E; &#x6CE8;&#x91CA;&#x6389;&#x662F;&#x56E0;&#x4E3A;</span>
<span class="hljs-comment">#            spring:                                                                                        # &#x6211;&#x7684;rabbitMQ&#x5728;&#x5176;&#x4ED6;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x4E0D;&#x518D;&#x672C;&#x5730;</span>
<span class="hljs-comment">#              rabbitmq:                                                                                # &#x5E94;&#x8BE5;&#x5199;&#x5728;spring&#x8282;&#x70B9;&#x7684;&#x540E;&#x9762;&#xFF0C;&#x4E0D;&#x7136;&#x4F1A;&#x62A5;&#x8FDE;&#x63A5;&#x62D2;&#x7EDD;</span>
<span class="hljs-comment">#                host: ip</span>
<span class="hljs-comment">#                port: 5672</span>
<span class="hljs-comment">#                username: guest</span>
<span class="hljs-comment">#                password: guest</span>

<span class="hljs-attr">      bindings:</span>                                                 <span class="hljs-comment"># &#x670D;&#x52A1;&#x7684;&#x6574;&#x5408;&#x5904;&#x7406;</span>
<span class="hljs-attr">        output:</span>                                                 <span class="hljs-comment"># &#x901A;&#x9053;(channel)&#x7684;&#x540D;&#x79F0;</span>
<span class="hljs-attr">          destination:</span> studyExhange                             <span class="hljs-comment"># &#x8868;&#x793A;&#x8981;&#x4F7F;&#x7528;&#x7684;Exchange&#x540D;&#x79F0;</span>
<span class="hljs-attr">          content-type:</span> application/json                        <span class="hljs-comment"># &#x8BBE;&#x7F6E;&#x6D88;&#x606F;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x6587;&#x672C;&#x5219;&#x4E3A; &quot;text/plain&quot;</span>
<span class="hljs-attr">          binder:</span> defaultRabbit                                 <span class="hljs-comment"># &#x8BBE;&#x7F6E;&#x8981;&#x7ED1;&#x5B9A;&#x7684;&#x6D88;&#x606F;&#x670D;&#x52A1;&#x7684;&#x5177;&#x4F53;&#x8BBE;&#x7F6E;</span>
<span class="hljs-attr">  rabbitmq:</span>                                                                                                            <span class="hljs-comment"># &#x5982;&#x679C;rabbitmq&#x5728;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#xFF0C;&#x5219;&#x4F7F;&#x7528;&#x8FD9;&#x4E2A;&#x914D;&#x7F6E;</span>
<span class="hljs-attr">    host:</span> ip
<span class="hljs-attr">    port:</span> <span class="hljs-number">5672</span>
<span class="hljs-attr">    username:</span> guest
<span class="hljs-attr">    password:</span> guest

<span class="hljs-attr">  datasource:</span>
<span class="hljs-attr">    type:</span> com.alibaba.druid.pool.DruidDataSource
<span class="hljs-attr">    driver-class-name:</span> org.gjt.mm.mysql.Driver
<span class="hljs-attr">    url:</span> jdbc:mysql://ip:<span class="hljs-number">3306</span>/bigdata?useUnicode=<span class="hljs-literal">true</span>&amp;characterEncoding=utf<span class="hljs-bullet">-8</span>&amp;useSSL=<span class="hljs-literal">false</span>
<span class="hljs-attr">    username:</span> root
<span class="hljs-attr">    password:</span> ****

<span class="hljs-attr">mybatis:</span>
<span class="hljs-attr">  mapper-locations:</span> classpath:sqlMapper/*.xml
<span class="hljs-attr">  type-aliases-package:</span> com.springcloud.entities  <span class="hljs-comment"># &#x6240;&#x5728;entity&#x522B;&#x540D;&#x7C7B;&#x6240;&#x5728;&#x5305;</span>

<span class="hljs-attr">eureka:</span>
<span class="hljs-attr">  client:</span>
<span class="hljs-attr">    register-with-eureka:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    fetch-registry:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    service-url:</span>
<span class="hljs-attr">      defaultZone:</span> http://localhost:<span class="hljs-number">7001</span>/eureka/
</code></pre>
<p>&#x65B0;&#x5EFA;&#x63A5;&#x53E3;IMessageProducerService</p>
<pre><code class="lang-java"><span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">interface</span> <span class="hljs-title">IMessageProducerService</span> </span>{
    <span class="hljs-function">String <span class="hljs-title">send</span><span class="hljs-params">()</span></span>;
}
</code></pre>
<p>&#x65B0;&#x5EFA;&#x5B9E;&#x73B0;&#x7C7B;MessageProducerServiceImpl&#xFF0C;&#x6CE8;&#x610F;&#x5F15;&#x5165;&#x7684;&#x5305;&#xFF0C;&#x522B;&#x5F15;&#x5165;&#x9519;&#x8BEF;&#x4E86;</p>
<pre><code class="lang-java"><span class="hljs-keyword">import</span> cn.hutool.core.util.IdUtil;
<span class="hljs-keyword">import</span> com.bulangxiongdi.springcloud.service.IMessageProducerService;
<span class="hljs-keyword">import</span> lombok.extern.slf4j.Slf4j;
<span class="hljs-keyword">import</span> org.springframework.beans.factory.annotation.Autowired;
<span class="hljs-keyword">import</span> org.springframework.cloud.stream.annotation.EnableBinding;
<span class="hljs-keyword">import</span> org.springframework.cloud.stream.messaging.Source;
<span class="hljs-keyword">import</span> org.springframework.messaging.support.MessageBuilder;

<span class="hljs-meta">@EnableBinding</span>(Source.class)
<span class="hljs-meta">@Slf</span>4j
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MessageProducerServiceImpl</span> <span class="hljs-keyword">implements</span> <span class="hljs-title">IMessageProducerService</span> </span>{

    <span class="hljs-meta">@Autowired</span>
    <span class="hljs-keyword">private</span> Source source;

    <span class="hljs-meta">@Override</span>
    <span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">send</span><span class="hljs-params">()</span> </span>{
        String uuid = IdUtil.fastUUID();
        source.output().send(MessageBuilder.withPayload(uuid).build());
        log.info(<span class="hljs-string">&quot;&#x6D88;&#x606F;&#x751F;&#x4EA7;&#x8005;&#x751F;&#x4EA7;&#x4E86;&#x4E00;&#x6761;&#x6D88;&#x606F;---&gt; {}&quot;</span>,uuid);
        <span class="hljs-keyword">return</span> <span class="hljs-keyword">null</span>;
    }
}
</code></pre>
<p>&#x65B0;&#x5EFA;controller&#x6765;&#x89E6;&#x53D1;&#x6D88;&#x606F;&#x63A8;&#x9001;</p>
<pre><code class="lang-java"><span class="hljs-meta">@RestController</span>
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MessageController</span> </span>{
    <span class="hljs-meta">@Autowired</span>
    <span class="hljs-keyword">private</span> IMessageProducerService messageProducerService;

    <span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/message/send&quot;</span>)
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">sendMessage</span><span class="hljs-params">()</span></span>{
        messageProducerService.send();
    }
}
</code></pre>
<p><strong>&#x4FEE;&#x6539;Order&#x6A21;&#x5757;&#x6D88;&#x8D39;&#x6D88;&#x606F;</strong></p>
<hr>
<p>pom.xml</p>
<pre><code class="lang-xml"><span class="php"><span class="hljs-meta">&lt;?</span>xml version=<span class="hljs-string">&quot;1.0&quot;</span> encoding=<span class="hljs-string">&quot;UTF-8&quot;</span><span class="hljs-meta">?&gt;</span></span>
<span class="hljs-tag">&lt;<span class="hljs-name">project</span> <span class="hljs-attr">xmlns</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0&quot;</span>
         <span class="hljs-attr">xmlns:xsi</span>=<span class="hljs-string">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
         <span class="hljs-attr">xsi:schemaLocation</span>=<span class="hljs-string">&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">parent</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>bigdata<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.springcloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>1.0-SNAPSHOT<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-name">parent</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-name">modelVersion</span>&gt;</span>4.0.0<span class="hljs-tag">&lt;/<span class="hljs-name">modelVersion</span>&gt;</span>

    <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>eureka-consumer-order<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>


    <span class="hljs-tag">&lt;<span class="hljs-name">dependencies</span>&gt;</span>

        <span class="hljs-comment">&lt;!--stream RabbitMQ--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-stream-rabbit<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--&#x6D88;&#x606F;&#x603B;&#x7EBF;RabbitMQ--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-bus-amqp<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>


        <span class="hljs-comment">&lt;!--config client--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-config<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--&#x65B0;&#x589E;hystrix--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-netflix-hystrix<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.netflix.hystrix<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>hystrix-javanica<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>RELEASE<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!-- OpenFeign &#x4F9D;&#x8D56; --&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-openfeign<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.cloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-cloud-starter-netflix-eureka-client<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-comment">&lt;!--web--&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-web<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-actuator<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-devtools<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>runtime<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">optional</span>&gt;</span>true<span class="hljs-tag">&lt;/<span class="hljs-name">optional</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.projectlombok<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>lombok<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">optional</span>&gt;</span>true<span class="hljs-tag">&lt;/<span class="hljs-name">optional</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>org.springframework.boot<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>spring-boot-starter-test<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">scope</span>&gt;</span>test<span class="hljs-tag">&lt;/<span class="hljs-name">scope</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

        <span class="hljs-tag">&lt;<span class="hljs-name">dependency</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">groupId</span>&gt;</span>com.springcloud<span class="hljs-tag">&lt;/<span class="hljs-name">groupId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">artifactId</span>&gt;</span>api-common<span class="hljs-tag">&lt;/<span class="hljs-name">artifactId</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-name">version</span>&gt;</span>${project.version}<span class="hljs-tag">&lt;/<span class="hljs-name">version</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-name">dependency</span>&gt;</span>

    <span class="hljs-tag">&lt;/<span class="hljs-name">dependencies</span>&gt;</span>


<span class="hljs-tag">&lt;/<span class="hljs-name">project</span>&gt;</span>
</code></pre>
<p>bootstrap.yml</p>
<pre><code class="lang-yml"><span class="hljs-attr">server:</span>
<span class="hljs-attr">  port:</span> <span class="hljs-number">80</span>

<span class="hljs-attr">eureka:</span>
<span class="hljs-attr">  client:</span>
<span class="hljs-attr">    register-with-eureka:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    fetch-registry:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    service-url:</span>
<span class="hljs-attr">      defaultZone:</span> http://localhost:<span class="hljs-number">7001</span>/eureka/
<span class="hljs-attr">spring:</span>
<span class="hljs-attr">  application:</span>
<span class="hljs-attr">    name:</span> eureka-consumer-order
<span class="hljs-attr">  cloud:</span>
<span class="hljs-attr">    stream:</span>
<span class="hljs-attr">      binders:</span>                                                  <span class="hljs-comment"># &#x6B64;&#x5904;&#x914D;&#x7F6E;&#x8981;&#x7ED1;&#x5B9A;&#x7684;rabbitmq&#x7684;&#x670D;&#x52A1;&#x4FE1;&#x606F;</span>
<span class="hljs-attr">        defaultRabbit:</span>                                          <span class="hljs-comment"># &#x8868;&#x793A;&#x5B9A;&#x4E49;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x7528;&#x4E8E;&#x4E0E;binding&#x6574;&#x5408;</span>
<span class="hljs-attr">          type:</span> rabbit                                          <span class="hljs-comment"># &#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x5982;&#x679C;&#x662F;kafka&#x5C31;&#x5199;kafka</span>
<span class="hljs-comment">#          environment:                                         # &#x8BBE;&#x7F6E;rabbitMQ&#x76F8;&#x5173;&#x73AF;&#x5883;&#x914D;&#x7F6E;</span>
<span class="hljs-comment">#            spring:</span>
<span class="hljs-comment">#              rabbitmq:</span>
<span class="hljs-comment">#                host: ip</span>
<span class="hljs-comment">#                port: 5672</span>
<span class="hljs-comment">#                username: guest</span>
<span class="hljs-comment">#                password: guest</span>
<span class="hljs-attr">      bindings:</span>                                                 <span class="hljs-comment"># &#x670D;&#x52A1;&#x7684;&#x6574;&#x5408;&#x5904;&#x7406;</span>
<span class="hljs-attr">        input:</span>                                                  <span class="hljs-comment"># &#x901A;&#x9053;(channel)&#x7684;&#x540D;&#x79F0;(&#x6CE8;&#x610F;&#x6B64;&#x5904;)</span>
<span class="hljs-attr">          destination:</span> studyExhange                             <span class="hljs-comment"># &#x8868;&#x793A;&#x8981;&#x4F7F;&#x7528;&#x7684;Exchange&#x540D;&#x79F0;</span>
<span class="hljs-attr">          content-type:</span> application/json                        <span class="hljs-comment"># &#x8BBE;&#x7F6E;&#x6D88;&#x606F;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x6587;&#x672C;&#x5219;&#x4E3A; &quot;text/plain&quot;</span>
<span class="hljs-attr">          binder:</span> defaultRabbit
<span class="hljs-attr">    config:</span>
<span class="hljs-attr">      label:</span> master
<span class="hljs-attr">      name:</span> application
<span class="hljs-attr">      profile:</span> dev
<span class="hljs-attr">      uri:</span> http://localhost:<span class="hljs-number">3344</span>

  <span class="hljs-comment">#rabbitMQ&#x76F8;&#x5173;&#x914D;&#x7F6E;</span>
<span class="hljs-attr">  rabbitmq:</span>
<span class="hljs-attr">    host:</span> ip
<span class="hljs-attr">    port:</span> <span class="hljs-number">5672</span>
<span class="hljs-attr">    username:</span> guest
<span class="hljs-attr">    password:</span> guest

<span class="hljs-comment"># &#x66B4;&#x9732;&#x76D1;&#x63A7;&#x7AEF;&#x70B9;</span>
<span class="hljs-attr">management:</span>
<span class="hljs-attr">  endpoints:</span>
<span class="hljs-attr">    web:</span>
<span class="hljs-attr">      exposure:</span>
<span class="hljs-attr">        include:</span> <span class="hljs-string">&quot;*&quot;</span>
</code></pre>
<p>&#x65B0;&#x5EFA;&#x7C7B; MessageConsumerService &#x6765;&#x6D88;&#x8D39;&#x6D88;&#x606F;</p>
<pre><code class="lang-java"><span class="hljs-keyword">import</span> org.springframework.cloud.stream.annotation.EnableBinding;
<span class="hljs-keyword">import</span> org.springframework.cloud.stream.annotation.StreamListener;
<span class="hljs-keyword">import</span> org.springframework.cloud.stream.messaging.Sink;
<span class="hljs-keyword">import</span> org.springframework.messaging.Message;

<span class="hljs-meta">@EnableBinding</span>(Sink.class)
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MessageConsumerService</span> </span>{
    <span class="hljs-meta">@StreamListener</span>(Sink.INPUT)
    <span class="hljs-function"><span class="hljs-keyword">public</span> <span class="hljs-keyword">void</span> <span class="hljs-title">recevieMes</span><span class="hljs-params">(Message&lt;String&gt; message)</span></span>{
        System.out.println(<span class="hljs-string">&quot;-----&#x6211;&#x63A5;&#x53D7;&#x5230;&#x7684;&#x6D88;&#x606F;&#x662F;&#xFF1A;&quot;</span>+message.getPayload());
    }
}
</code></pre>
<h2 id="3&#x542F;&#x52A8;&#x6D4B;&#x8BD5;"><a name="3&#x542F;&#x52A8;&#x6D4B;&#x8BD5;" class="plugin-anchor" href="#3&#x542F;&#x52A8;&#x6D4B;&#x8BD5;"><i class="fa fa-link" aria-hidden="true"></i></a>3.&#x542F;&#x52A8;&#x6D4B;&#x8BD5;</h2>
<p>&#x5F53;&#x7136;&#x4E3A;&#x4E86;&#x6548;&#x679C;&#x597D;&#xFF0C;&#x4F60;&#x53EF;&#x4EE5;&#x65B0;&#x589E;&#x4E00;&#x4E2A;&#x53EA;&#x6709;&#x7AEF;&#x53E3;&#x4E0D;&#x4E00;&#x6837;&#x7684;&#x540C;&#x6837;&#x7684;&#x6D88;&#x8D39;&#x8005;&#xFF0C;&#x6211;&#x8FD9;&#x91CC;&#x7701;&#x7565;&#x6389;&#x4E86;</p>
<p>&#x542F;&#x52A8;Eureka&#x6CE8;&#x518C;&#x4E2D;&#x5FC3;&#xFF0C;&#x542F;&#x52A8;payment&#x548C;order&#x9879;&#x76EE;</p>
<p>&#x53D1;&#x9001;&#x6D88;&#x606F;&#x751F;&#x4EA7;&#x8005;&#x7684;controller <code>http://localhost:8001/message/send</code></p>
<p>&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x770B;&#x751F;&#x4EA7;&#x8005;&#x548C;&#x6D88;&#x8D39;&#x8005;&#x7684;&#x63A7;&#x5236;&#x53F0;&#x7684;&#x751F;&#x4EA7;&#x548C;&#x6D88;&#x8D39;&#x6548;&#x679C;</p>
<h2 id="4&#x5206;&#x7EC4;&#x6982;&#x5FF5;"><a name="4&#x5206;&#x7EC4;&#x6982;&#x5FF5;" class="plugin-anchor" href="#4&#x5206;&#x7EC4;&#x6982;&#x5FF5;"><i class="fa fa-link" aria-hidden="true"></i></a>4.&#x5206;&#x7EC4;&#x6982;&#x5FF5;</h2>
<p>&#x4E00;&#x4E2A;&#x7EC4;&#x5185;&#x7684;&#x6D88;&#x8D39;&#x8005;&#x4F1A;&#x7ADE;&#x4E89;&#x4E00;&#x6761;&#x6D88;&#x606F;&#xFF0C;&#x4E0D;&#x4F1A;&#x540C;&#x65F6;&#x6D88;&#x8D39;&#x800C;&#x4EA7;&#x751F;&#x91CD;&#x590D;&#x6D88;&#x8D39;&#x7684;&#x95EE;&#x9898;</p>
<p>&#x4E0D;&#x540C;&#x7684;&#x7EC4;&#x5185;&#xFF0C;&#x53EA;&#x8981;&#x8BA2;&#x9605;&#x4E86;topic/Exchange&#xFF0C;&#x5C31;&#x4F1A;&#x540C;&#x65F6;&#x6D88;&#x8D39;&#x4E00;&#x6761;&#x6D88;&#x606F;</p>
<p>&#x53EA;&#x9700;&#x8981;&#x5728;&#x6D88;&#x8D39;&#x8005;&#x7AEF;&#x7684;yml&#x589E;&#x52A0;group &#x914D;&#x7F6E;&#x5373;&#x53EF;</p>
<pre><code class="lang-yml"><span class="hljs-attr">server:</span>
<span class="hljs-attr">  port:</span> <span class="hljs-number">80</span>

<span class="hljs-attr">eureka:</span>
<span class="hljs-attr">  client:</span>
<span class="hljs-attr">    register-with-eureka:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    fetch-registry:</span> <span class="hljs-literal">true</span>
<span class="hljs-attr">    service-url:</span>
<span class="hljs-attr">      defaultZone:</span> http://localhost:<span class="hljs-number">7001</span>/eureka/
<span class="hljs-attr">spring:</span>
<span class="hljs-attr">  application:</span>
<span class="hljs-attr">    name:</span> eureka-consumer-order
<span class="hljs-attr">  cloud:</span>
<span class="hljs-attr">    stream:</span>
<span class="hljs-attr">      binders:</span>                                                  <span class="hljs-comment"># &#x6B64;&#x5904;&#x914D;&#x7F6E;&#x8981;&#x7ED1;&#x5B9A;&#x7684;rabbitmq&#x7684;&#x670D;&#x52A1;&#x4FE1;&#x606F;</span>
<span class="hljs-attr">        defaultRabbit:</span>                                          <span class="hljs-comment"># &#x8868;&#x793A;&#x5B9A;&#x4E49;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x7528;&#x4E8E;&#x4E0E;binding&#x6574;&#x5408;</span>
<span class="hljs-attr">          type:</span> rabbit                                          <span class="hljs-comment"># &#x6D88;&#x606F;&#x7EC4;&#x4EF6;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x5982;&#x679C;&#x662F;kafka&#x5C31;&#x5199;kafka</span>
<span class="hljs-comment">#          environment:                                         # &#x8BBE;&#x7F6E;rabbitMQ&#x76F8;&#x5173;&#x73AF;&#x5883;&#x914D;&#x7F6E;</span>
<span class="hljs-comment">#            spring:</span>
<span class="hljs-comment">#              rabbitmq:</span>
<span class="hljs-comment">#                host: ip</span>
<span class="hljs-comment">#                port: 5672</span>
<span class="hljs-comment">#                username: guest</span>
<span class="hljs-comment">#                password: guest</span>
<span class="hljs-attr">      bindings:</span>                                                 <span class="hljs-comment"># &#x670D;&#x52A1;&#x7684;&#x6574;&#x5408;&#x5904;&#x7406;</span>
<span class="hljs-attr">        input:</span>                                                  <span class="hljs-comment"># &#x901A;&#x9053;(channel)&#x7684;&#x540D;&#x79F0;(&#x6CE8;&#x610F;&#x6B64;&#x5904;)</span>
<span class="hljs-attr">          destination:</span> studyExhange                             <span class="hljs-comment"># &#x8868;&#x793A;&#x8981;&#x4F7F;&#x7528;&#x7684;Exchange&#x540D;&#x79F0;</span>
<span class="hljs-attr">          content-type:</span> application/json                        <span class="hljs-comment"># &#x8BBE;&#x7F6E;&#x6D88;&#x606F;&#x7684;&#x7C7B;&#x578B;&#xFF0C;&#x6587;&#x672C;&#x5219;&#x4E3A; &quot;text/plain&quot;</span>
<span class="hljs-attr">          binder:</span> defaultRabbit
<span class="hljs-attr">          group:</span> groupA                                         <span class="hljs-comment"># &#x5B9A;&#x4E49;&#x5206;&#x7EC4;&#xFF0C;&#x540C;&#x4E00;&#x4E2A;&#x7EC4;&#x5185;&#x6D88;&#x606F;&#x4F1A;&#x7ADE;&#x4E89;&#x6D88;&#x8D39; &lt;===&#x8FD9;&#x91CC;</span>
<span class="hljs-attr">    config:</span>
<span class="hljs-attr">      label:</span> master
<span class="hljs-attr">      name:</span> application
<span class="hljs-attr">      profile:</span> dev
<span class="hljs-attr">      uri:</span> http://localhost:<span class="hljs-number">3344</span>

  <span class="hljs-comment">#rabbitMQ&#x76F8;&#x5173;&#x914D;&#x7F6E;</span>
<span class="hljs-attr">  rabbitmq:</span>
<span class="hljs-attr">    host:</span> ip
<span class="hljs-attr">    port:</span> <span class="hljs-number">5672</span>
<span class="hljs-attr">    username:</span> guest
<span class="hljs-attr">    password:</span> guest

<span class="hljs-comment"># &#x66B4;&#x9732;&#x76D1;&#x63A7;&#x7AEF;&#x70B9;</span>
<span class="hljs-attr">management:</span>
<span class="hljs-attr">  endpoints:</span>
<span class="hljs-attr">    web:</span>
<span class="hljs-attr">      exposure:</span>
<span class="hljs-attr">        include:</span> <span class="hljs-string">&quot;*&quot;</span>
</code></pre>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; mine 2022-2025 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2022-07-12 11:30:56
</span></footer>
<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="14.消息总线-bus.html" class="navigation navigation-prev " aria-label="Previous page: 消息总线-Bus">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="16.链路监控-Sleuth.html" class="navigation navigation-next " aria-label="Next page: 链路监控-Sleuth">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"消息驱动-Stream","level":"4.1.14","depth":2,"next":{"title":"链路监控-Sleuth","level":"4.1.15","depth":2,"path":"springcloud/16.链路监控-Sleuth.md","ref":"springcloud/16.链路监控-Sleuth.md","articles":[]},"previous":{"title":"消息总线-Bus","level":"4.1.13","depth":2,"path":"springcloud/14.消息总线-bus.md","ref":"springcloud/14.消息总线-bus.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["back-to-top-button","code","splitter","expandable-chapters-small","anchors","theme-comscore","tbfed-pagefooter","sidebar-style","pageview-count","popup"],"pluginsConfig":{"sidebar-style":{"author":"梁兴龙","title":"《Java 笔记本》"},"tbfed-pagefooter":{"copyright":"Copyright &copy mine 2022-2025","modify_label":"文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"splitter":{},"search":{},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-comscore":{},"back-to-top-button":{},"pageview-count":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"springcloud/15.消息驱动-stream.md","mtime":"2022-07-12T03:30:56.709Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-08-22T03:22:22.085Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sidebar-style/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

